package cn.iocoder.yudao.module.wecom.controller.admin.msgrecord.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 会话消息新增/修改 Request VO")
@Data
public class WeMsgRecordSaveReqVO {

    @Schema(description = "会话消息编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "18747")
    private Long id;

    @Schema(description = "消息类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "消息类型不能为空")
    private Integer msgtype;

    @Schema(description = "消息记录id", requiredMode = Schema.RequiredMode.REQUIRED, example = "28221")
    @NotEmpty(message = "消息记录id不能为空")
    private String msgid;

    @Schema(description = "发送人ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "8476")
//    @NotEmpty(message = "发送人ID不能为空")
    private String senderId;

    @Schema(description = "发送人类型：1-员工；2-外部联系人；3-机器人", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
//    @NotNull(message = "发送人类型：1-员工；2-外部联系人；3-机器人不能为空")
    private Integer senderType;

    @Schema(description = "群id", example = "5710")
    private String chatid;

    @Schema(description = "接收人ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "26836")
//    @NotEmpty(message = "接收人ID不能为空")
    private String receiverId;

    @Schema(description = "接收人类型1：员工；2：外部联系人; 3：机器人", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
//    @NotNull(message = "接收人类型1：员工；2：外部联系人; 3：机器人不能为空")
    private Integer receiverType;

    @Schema(description = "消息发送时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "消息发送时间不能为空")
    private LocalDateTime sendTime;

    @Schema(description = "原始加密密钥")
    private String secureKey;

    @Schema(description = "内容")
    private String content;

    @Schema(description = "附件内容")
    private String attachment;

}